WiFi 11 Click is a compact add-on board that contains a WiFi and Bluetooth module that has dual bands for WiFi communication. This board features the BW16, a low-power dual bands Wireless LAN (WLAN) and Bluetooth Low Energy SoC module from Ai-Thinker. This module supports the WiFi 5G and Bluetooth Low Energy 5.0, it consists of a high-performance MCU on a module named KM4, a low power MCU named KM0, WLAN (802.11 a/b/g/n) MAC, a 1T1R capable WLAN baseband, RF, Bluetooth, and peripherals. An inner antenna and many interfaces are available in this WiFi and Bluetooth module. This Click board™ is suitable for industrial wireless control, Bluetooth gateway, security ID tags, smart home applications, and many more.
WiFi 11 Click is supported by a mikroSDK compliant library, which includes functions that simplify software development. This Click board™ comes as a fully tested product, ready to be used on a system equipped with the mikroBUS™ socket.
WiFi 11 Click is based on the BW16, a low-power dual bands Wireless LAN (WLAN) and Bluetooth Low Energy SoC module from Ai-Thinker. The BW16 module represents a highly integrated Wi-Fi and Bluetooth SOC based on the RTL8720DN, a highly integrated Single-Chip with a low power dual bands (2.4GHz and 5GHz), Wireless LAN (WLAN), and Bluetooth Low Energy (v5.0). It consists of a high-performance MCU (ARM V8M, Cortex-M4F instruction compatible) named KM4, a low power MCU (ARM V8M, Cortex-M0 instruction compatible) named KM0, WLAN (802.11 a/b/g/n) MAC, a 1T1R capable WLAN baseband, RF, Bluetooth, and other peripherals. The BW16 integrates internal memories for complete WIFI and BLE 5.0 protocol functions. The embedded memory configuration also provides simple application developments.
WiFi 11 Click communicates with MCU using the UART interface at 57600 bps as its default communication protocol, but it is also left the option for the user to use other interfaces such as SPI and I2C if he wants to configure the module and write the library by himself. There is also a jumper JP1 on this Click board™ that enables the necessary pull-up resistors on the SCL and SDA lines of I2C communication.
NOTE: After primary module initialization, and before any program uploading, user should write network parameters and TCP server parameters.
Additional functionality such as the Chip Enable button labeled as RST, which is used to Enable or put the module in Shut-Down mode, is provided and routed at EN pin of the mikroBUS™ socket. Alongside this pin, this Click board™ has one general purpose pin GP1 routed at the INT pin of the mikroBUS™ socket, which can be used in various cases like interrupt or some other purposes. WiFi 11 Click also has an additional header with UART RX0 and TX0 module pins on itself together with a button labeled as LOG_TX which can be used for Firmware Update or as low-power mode Wake-Up function.
This Click board™ is designed to be operated only with a 3.3V logic voltage level. A proper logic voltage level conversion should be performed before the Click board™ is used with MCUs with different logic levels. However, the Click board™ comes equipped with a library that contains easy to use functions and a usage example that may be used as a reference for further development.
Specifications:
Type | WiFi |
Applications | Can be used for industrial wireless control, Bluetooth gateway, security ID tags, smart home applications, and many more. |
On-board modules | WiFi 11 Click is based on the BW16, a low-power dual bands Wireless LAN (WLAN) and Bluetooth Low Energy SoC module from Ai-Thinker. |
Key Features | Ultra-low power consumption, support low-power Tx/Rx for short-range applications, support BLE, supported TrustZone-M and Secure boot, eFuse protection, and more. |
Interface | I2C,SPI,UART |
Compatibility | mikroBUS |
Click board size | L (57.15 x 25.4 mm) |
Input Voltage | 3.3V |
PinOut Diagram:
This table shows how the pinout on WiFi 11 Click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
OnBoard Settings And Indicators:
Label | Name | Default | Description |
---|---|---|---|
LD1 | PWR | - | Power LED Indicator |
JP1 | - | - | I2C Pull-Up Resistor Selector |
J1 | M1X3 | - | UART FW Update Header |
T1 | LOG_TX | - | FW Update Button |
T2 | RST | - | Chip Enable Button |
WIFI 11 Click Electrical Specifications:
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | - | 3.3 | - | V |
Frequency Range | 2.412 / 5.180 | - | 2.484 / 5.825 | GHz |
Receiver Sensitivity | - | -92 | - | dBm |
Transmit Power | - | 7±2 | - | dBm |
Operating Temperature Range | -20 | - | +85 | °C |
Software Support:
We provide a library for the WiFi 11 Click on our LibStock page, as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Library Description
The library contains a basic functions for using WiFi 11 click.
Key functions:
void wifi11_set_conect_to_ap( char *username, char *password )
- Connect to APvoid wifi11_send_command ( uint8_t *cmd )
- Send commandExamples description
The application is composed of three sections :
void application_init ( ) { wifi11_uart_driver_init ( ( wifi11_obj_t )&_MIKROBUS1_GPIO, ( wifi11_obj_t )&_MIKROBUS1_UART ); Delay_ms( 200 ); wifi11_reset_device( ); Delay_ms( 5000 ); mikrobus_logWrite( "---- Start test command -----", _LOG_LINE ); wifi11_send_command( &WIFI11_CMD_AT[ 0 ] ); Delay_ms( 200 ); wifi11_send_command( &WIFI11_CMD_ATSV[ 0 ] ); Delay_ms( 200 ); mikrobus_logWrite( "---- WiFi configuration -----", _LOG_LINE ); wifi11_send_command( &WIFI11_CMD_ATPW[ 0 ] ); Delay_ms( 1000 ); wifi11_set_conect_to_ap( &wifi11_net_username[ 0 ], &wifi11_net_password[ 0 ] ); Delay_ms( 10000 ); wifi11_send_command( &WIFI11_CMD_ATW[ 0 ] ); Delay_ms( 1000 ); mikrobus_logWrite( "---- TCP example (Client) -----", _LOG_LINE ); wifi11_send_command( &WIFI11_CMD_ATPC[ 0 ] ); Delay_ms( 10000 ); wifi11_send_command( &WIFI11_CMD_ATPT[ 0 ] ); Delay_ms( 1000 ); wifi11_send_command( &WIFI11_CMD_ATPK[ 0 ] ); Delay_ms( 1000 ); }
The full application code, and ready to use projects can be found on our LibStock page.
Other mikroE Libraries used in the example:
Additional notes and informations
Depending on the development board you are using, you may need USB UART click, USB UART 2 click or RS232 click to connect to your PC, for development systems with no UART to USB interface available on the board. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message.
MikroSDK:
This Click board™ is supported with mikroSDK - MikroElektronika Software Development Kit. To ensure proper operation of mikroSDK compliant Click board™ demo applications, mikroSDK should be downloaded from the LibStock and installed for the compiler you are using.
For more information about mikroSDK, visit the official page.
Resources:
Downloads: